import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/view/Login";
import Index from "@/view/Index";
import Reg from "@/view/Reg";

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',//根目录
            name: 'Login',
            component: Login
        },
        {
            path: '/index',//根目录
            name: 'Index',
            component: Index
        },
        {
            path: '/reg',//根目录
            name: 'Reg',
            component: Reg
        }
    ]
})
